﻿window.onresize = function() {
    try {
        //resizeBox();
    } catch (ex) { }
};
window.onload = function() {
    moveMenu();
}
function resizeBox() {
    try {
        alert("aaa");
        var box = document.getElementById("dBody");
        var sizeW = utils.windowSize();
        var boxT = (sizeW[1]) / 2;
        boxT = (boxT > 0 ? boxT : 0);
        box.style.marginTop = boxT + 'px';
    }
    catch (ex) { }
}

function moveMenu() {//Animation menu
    $(function() {
        $('#ulMenu > li').hover(
            function() {
                var d = $('a', $(this)).css("margin-top");
                if (d == "25px") {
                } else {
                    $('a', $(this)).stop().animate({
                        'marginTop': '24.97px'
                    }, 150);
                }
            },
            function() {
                var f = $('a', $(this)).css("margin-top");
                if (f == "25px") { }
                else {
                    $('a', $(this)).stop().animate({
                        'marginTop': '0px'
                    }, 150);
                }
            }
        );

    });
}

$(function() {//animate Social

    $("div#dSocial ul#ulSocial li img").bubbleup({ tooltip: false, scale: 62 });

});